SftTree/OCX 7.0

SftTree.FindItemData Method

Softel vdm, Inc.

Searches the Dataproperty of items.

Deprecated - Provided for compatibility with earlier versions only - Use Items.FindData instead

Syntax       

VB.NET

FoundIndex = object.FindItemData(ByVal ItemIndex As Integer, ByVal ItemData As Integer)  As Integer

VB

FoundIndex = object.FindItemData(ByVal ItemIndex As Long, ByVal ItemData As Long)  As Long

C#.NET

int FoundIndex = object.FindItemData(int ItemIndex, int ItemData);

VC++

long FoundIndex = object->FindItemData(long ItemIndex, long ItemData);

C

HRESULT object->raw_FindItemData(long ItemIndex, long ItemData, long* FoundIndex);

Delphi

FoundIndex := object.FindItemData(ItemIndex : Integer; ItemData : Integer)   : Integer;

object

A SftTree object.

ItemIndex

The zero-based index of the item where the search begins (including ItemIndex).

ItemData

The value to be searched.

FoundIndex

Returns the index of the item whose Item.Data property has the value specified by ItemData.  -1 is returned if no matching item is found.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Items.FindData instead

The FindItemData method searches the Item.Data property of items.

The value described by ItemData is compared to the Item.Data property of all items involved in the search.  The search starts at the item described by ItemIndex.  If an item with a matching Item.Data property is found, its zero-based index is returned, otherwise -1 is returned.

See Also  SftTree Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com